import LangCn from './cn.js'
import LangEn from './en.js'
import Vue from 'vue'
import VueI18n from './vue-i18n'
Vue.use(VueI18n)
const cur_lang = uni.getStorageSync('language')
console.log(cur_lang)
const i18n = new VueI18n({
	locale: cur_lang || 'zh-Hans', // 默认选择的语言
	messages: {
		'zh-Hans': LangCn,
		'en':LangEn
	}
})
export default i18n
